/*
 * (C) 2009 AXIOHELIX. All rights reserved.
 */
package com.doerit.laptops.util;

import java.util.Map;

import org.apache.log4j.Logger;
import org.apache.velocity.app.VelocityEngine;
import org.springframework.mail.javamail.JavaMailSender;

public abstract class AbstractEmailSend {

    public static final String EMAIL = "email";
    public static final String EMAIL_SUBJECT = "email_subject";
    public static final String PASSWORD ="pass-word";

    protected JavaMailSender mailSender;
    protected String senderEmail;
    protected String emailSubject;
    protected VelocityEngine velocityEngine;
    protected Map<String, String> emailSubjectsMap;

    Logger  logger = Logger.getLogger(AbstractEmailSend.class);

    public void setEmailSubject(String emailSubject) {
        this.emailSubject = emailSubject;
    }

    public void setMailSender(JavaMailSender mailSender) {
        this.mailSender = mailSender;
    }

    public void setVelocityEngine(VelocityEngine velocityEngine) {
        this.velocityEngine = velocityEngine;
    }

    public void setSenderEmail(String senderEmail) {
        this.senderEmail = senderEmail;
    }

	public Map<String, String> getEmailSubjectsMap() {
		return emailSubjectsMap;
	}

	public void setEmailSubjectsMap(Map<String, String> emailSubjectsMap) {
		this.emailSubjectsMap = emailSubjectsMap;
	}

}
